﻿using Microsoft.Extensions.DependencyInjection;
using System;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.Modularity;

namespace ExaminationSystem.EntityFrameworkCore
{
    [DependsOn(typeof(AbpEntityFrameworkCoreModule))]
    public class ExaminationSystemEntityFrameworkCoreModule:AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddAbpDbContext<ExaminationSystemDbContext>();
            context.Services.Configure<AbpDbContextOptions>(
                opt=>opt.UseSqlServer()
                );
        }
    }
}
